LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::Codec< char[len]> Struct Template Reference

Specialisation of Codec for arrays of char.

#include <nrg_codec.h>

Public Member Functions

size_t encode (Packet &p, const char(&data)[len])
 Encodes data into p, and retuns the number of bytes written.
 
size_t decode (Packet &p, char(&data)[len])
 Decodes bytes from p into data, returns the number of bytes read or 0 on error.
 

The documentation for this struct was generated from the following file: